package com.zat.mes.andrmes.dofun.main.adapter

import android.text.TextUtils
import android.view.View
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zat.mes.andrmes.R
import com.zat.mes.andrmes.data.BindMachineBean
import com.zat.mes.andrmes.data.DayPlanNotifBean

/**
 * @author zy
 * @date :2020-07-14 18:12
 * @description:绑定设备
 */
class NotifiAdapter(layoutResId: Int) :
    BaseQuickAdapter<DayPlanNotifBean, BaseViewHolder>(layoutResId) {
    override fun convert(helper: BaseViewHolder, item: DayPlanNotifBean) {

        helper.setText(R.id.tvNumNotifi, "日计划号："+item?.planDayNumber)
            .setText(R.id.tvOrderStyleNotifi, "制单号-款式："+item?.remark2)
            .setText(R.id.tvEmpNotifi, "操作人："+item?.empName)
            .setText(R.id.tvDateNotifi, "操作时间："+item?.operationalTime)
        when(item?.status){
            "1"->helper.setText(R.id.tvStatusNotifi,"暂停")
            "2"->helper.setText(R.id.tvStatusNotifi,"停止")
            "3"->helper.setText(R.id.tvStatusNotifi,"开始")
        }


    }


}